package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties("handler")
public class User extends BaseDomain {
    public static final Integer GENDER_SECRET = -1;
    public static final Integer GENDER_MAN = 1;
    public static final Integer GENDER_WOMEN = 0;

    private String email;

    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;

    private Integer gender;

    private String coverImgUrl;

    private String sign;

    private Strategy strategy;

    //积分商品 多对多
    private List<IntegralStore> integralStore;

    public String getGenderName(){
        String temp = "保密";
        if(gender == GENDER_MAN){
            temp = "男";
        }else if(gender == GENDER_WOMEN){
            temp = "女";
        }
        return temp;
    }


}